package com.test.jdbc.dao;

import com.test.jdbc.entity.Account;

import java.util.List;

/**
 * @Author zz-lxf
 * @E-mail 629938044@qq.com
 * @Date 2021/12/4 15:51
 * @Version 1.0
 */
public interface AccountDao {

    //添加
    int addAccount(Account account);

    //更新
    int updateAccount(Account account);

    //删除
    int deleteAccount(int id);

    //通过id查询
    Account findAccountById(int id);

    //查询所有账户
    List<Account> findAllAccount();

}
